package com.hncgy.xzf.jdapi.domain.product.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 商品SKU表
 * </p>
 *
 * @author 不会代码的蜡笔
 * @since 2025-10-31
 */
@Data
@Schema(name = "ProductSkus对象", description = "商品SKU表")
public class ProductSkus implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description ="SKU ID，主键")
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Integer skuId;

    @Schema(description ="商品ID，外键")
    private Integer productId;

    @Schema(description ="SKU编码，唯一")
    private String skuCode;

    @Schema(description ="规格属性，JSON格式")
    private String specifications;

    @Schema(description ="价格")
    private BigDecimal price;

    @Schema(description ="库存数量")
    private Integer stockQuantity;

    @Schema(description ="库存预警值")
    private Integer warningStock;

    @Schema(description = "销量")
    private Integer salesVolume;

    @Schema(description = "SKU图片URL")
    private String imageUrl;

    @Schema(description = "状态：active-启用, inactive-停用")
    private String status;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
